#page_box

  %h1 Login

  - if params[:login] == "failed"
    <div class="error_message">Login or password incorrect, try again.</div>

  - form_for(:user, :url => {:action => "login"}) do |f|
    
    .form_row
      %label Login
      = f.text_field(:login, :class => "text")
    
    .form_row
      %label Password
      = f.password_field(:password, :class => "password")

    .form_row
      %label Remember Me
      = check_box_tag("remember_me")
      %br{:style => "clear:both;"}

    .form_row
      %label
      = f.submit("Login", :class => "submit")
    
  - if APP_SETTINGS[:allow_user_signup]

    .hint_text
      = "#{link_to("Signup", :action => "signup")} for a new account."